package jdk8.stream;

import java.util.Comparator;

/**
 * desc     :
 * dateTime : 2020/7/15 18:11
 *
 * @author cww
 */

public class Number implements Comparator<Integer> {
    /**
     *
     * @throws NullPointerException if an argument is null and this
     *                              comparator does not permit null arguments
     * @throws ClassCastException   if the arguments' types prevent them from
     *                              being compared by this comparator.
     */
    @Override
    public int compare(Integer o1, Integer o2) {
        return o1.compareTo(o2);
    }

    public static void main(String[] args) {

    }
}
